SAXON=$$HOME/bin/saxon

# XQuery tests disabled for now...
# tests: gdata gdocs
tests: 

gdata:
	read -p "Username: " user && \
	read -p "Password: " pwd  && \
	"$(SAXON)" --xquery \
	    --resolve http://fgeorges.org/ns/google/data ../../xq/gdata.xq \
	    gdata-test.xq \
	    user="$$user" pwd="$$pwd" 2>&1 | tee gdata-test.log

gdocs:
	read -p "Username: " user && \
	read -p "Password: " pwd  && \
	"$(SAXON)" --xquery \
	    --resolve http://fgeorges.org/ns/google/docs ../../xq/gdocs.xq \
	    gdocs-test.xq \
	    user="$$user" pwd="$$pwd" 2>&1 | tee gdocs-test.log

.PHONY: tests gdata gdocs
